<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Top Menu</title>
<link href="css/table.css" rel="stylesheet" type="text/css" />
<link href="css/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function searchBywrId(wrId){
	document.getElementById("homewrId").value = wrId;
    document.forms[0].action = "searchwrInfo_homeView";
    document.forms[0].submit();
}
function createNews(){

	document.forms["news"].action = "createNews_homeView";
    document.forms["news"].submit();
}
</script>
</head>
<body>
<%@ include file="topmenu.jsp"%>
<div id="content">
<div id="wrInfo">
		<s:form method="post" theme="simple">
			<div id="wr" style="float: left; ">
				<table style="width:700px; margin-left: 135px;">
					<tr>
						<th>番号</th>
						<th>案件名称</th>
					</tr>
						<c:if test="${not empty HomeBean.wrInfo}">
							<c:forEach items="${HomeBean.wrInfo}" var="wr">
								<tr>
									<td>${wr.basewrNo}</td>
									<td>
										<a href="javascript:void(0);" onclick="searchBywrId('${wr.wrId}');">${wr.wrName}
										<input type="hidden" name="wrDetailId" value="${wr.wrId}"/></a>
									</td>
								</tr>
							</c:forEach>
						</c:if>
				</table>
			</div>
			<div id="dw" style="float:right;  margin-top: -10px; margin-right: 100px;">
				<table style="width:100px; margin-left: 200px;">
					<tr>
						<th>提交日报者</th>
					</tr>
					<c:if test="${not empty HomeBean.dwInfo}">
							<c:forEach items="${HomeBean.dwInfo}" var="dw">
								<tr>
									<td>${dw.resourceId}</td>
								</tr>
							</c:forEach>
						</c:if>
				</table>
			</div>
			<input type="hidden" name="workRequestViewBean.wrId" id="homewrId"/>
		</s:form>
</div>
<div id="newsInfo" style="float:left; padding-top: 10px; padding-right: 400px;">
<s:form name="news" method="post" theme="simple">
	
	<div id="news" >
				
					<c:if test="${not empty HomeBean.newsInfoList}">
					<s:iterator value="HomeBean.newsInfoList" var="news" status="stat">
							<c:if test="HomeBean.newsInfoList[%{#stat.index}==0]">
							
							</c:if>
					<table style="width:100px; margin-left: 200px;">
								<tr>
									<th>新闻类型</th>
								</tr>
								<tr>
									<td>${news.newsCateName}</td>
								</tr>
							</table>
					</s:iterator>
						</c:if>
			</div>
			<s:submit value="创建新闻" onclick="createNews();"></s:submit>
</s:form>
</div>
</div>
</body>
</html>